class Animal(object):
    def eat(self,food):
        print(f"正在吃{food}")

    def play(self):
        print("正在玩耍")

    def sleep(self):
        self.eat('狗粮') # dog.eat()
        print("正在睡觉")

dog = Animal()
dog.sleep()
# dog.play()
# pig = Animal()
# Animal.play(dog)
# Animal.play(pig)
# Animal.eat(dog,'狗粮')
# print(dog)
# dog.info()